/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectives;

import genotypes.Angles;
import geometry.Segment;
import java.util.Random;
import misc.Evaluation;

/**
 *
 * @author rusak
 */
public class MockObjective implements ObjectiveFunction {

    Random r = new Random();

    @Override
    public Evaluation evaluate(Angles angles) {
        return new Evaluation(r.nextInt(100), r.nextInt(10) > 7 ? 1 : 0);
    }

    @Override
    public Segment[] decode(Angles angles) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
